<?php
defined( '_JEXEC' ) or die( 'Restricted access' );

jimport( 'joomla.application.component.view');

class SimplelistingViewAuthor extends JView
{

    function displayShowAuthor($authorId)
	{
            global $mainframe, $context;
            $model      =& $this->getModel();
            $document   =& JFactory::getDocument();
            $params = &JComponentHelper::getParams( 'com_simplelisting');
            $db         =& JFactory::getDBO();
            $uri        =& JFactory::getURI();
            $user       =& JFactory::getUser();
            $author = $model->getAuthors($authorId);
            $select_theme         = $params->get('select_theme', '');
            $select_captcha_theme = $params->get('select_captcha_theme', '');
            $select_captcha_lang  = $params->get('select_captcha_lang', '');


            $items	=& $this->get( 'Data');
            $total	=& $this->get( 'Total');

            $this->assignRef('lists',		$lists);
            $this->assignRef('user',		$user);
            $this->assignRef('items',		$items);
            $this->assignRef('request_url',	$uri->toString());
            $this->assignRef('params',          $params) ;
            $this->assignRef('author',          $author);


            $this->assignRef('select_theme', $select_theme);
            $this->assignRef('select_captcha_theme', $select_captcha_theme);
            $this->assignRef('select_captcha_lang',  $select_captcha_lang);

            parent::display();
	}
}
?>
